package com.zheng.sss.service.imp;


import com.zheng.sss.dao.ResumeDao;
import com.zheng.sss.pojo.Resume;
import com.zheng.sss.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  @author: zheng
 *  @Date: 2020-06-25 20:33
 *  @Description:
 */
@Service
public class ResumeImp implements ResumeService {

    @Autowired
   private ResumeDao resumeDao;

    @Override
    public List<Resume> selectListResume() {

        return resumeDao.findAll();
    }

    @Override
    public void deleteResumeById(Long id) {
       resumeDao.deleteById(id);
    }

    @Override
    public void addResume(Resume resume) {
       resumeDao.save(resume);
    }

    @Override
    public void updateResume(Resume resume) {
        resumeDao.save(resume);
    }
}
